﻿using CommunityToolkit.Mvvm.ComponentModel;
using MyVideoPlayer.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace MyVideoPlayer.Models
{
    /// <summary>
    /// 播放器界面设置项数据交互
    /// </summary>
    public partial class SettingModel : ObservableObject
    {
        /// <summary>
        /// 音量大小
        /// </summary>
        [ObservableProperty]
        public int volume;
        /// <summary>
        /// 速度大小
        /// </summary>
        [ObservableProperty]
        public double speed;
        /// <summary>
        /// 是否重复播放
        /// </summary>
        [ObservableProperty]
        public RepeatEnum repeat;
        /// <summary>
        /// 是否循环播放
        /// </summary>
        [ObservableProperty]
        public bool isShuffle;
        /// <summary>
        /// 是否自动播放
        /// </summary>
        [ObservableProperty]
        public bool isAutoPlay;
        /// <summary>
        /// 播放界面是否最大化
        /// </summary>
        [ObservableProperty]
        public bool isMaximized;
        /// <summary>
        /// 播放列表是否可见
        /// </summary>
        [ObservableProperty]
        public bool isVisibility;
        /// <summary>
        /// 是否打开多窗口播放
        /// </summary>
        [JsonIgnore]
        [ObservableProperty]
        public bool isMultiWindows;
    }
}
